﻿@model Fmis21_10.Models.CardHistory

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Layout.cshtml";    
    
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

         <li id="CreatingCard" style="list-style-type: none">
           
        </li>
        <a id="addAnother" href="#">Add another</a>

        <script type="text/javascript">
            $(function () {
                $("#addAnother").click(function () {
                    $.get('/CardHistory/MultiCreate', function (template) {
                        $("#CreatingCard").append(template);
                    });
                });
            });
        </script>

            <p>
            <input type="submit" value="Create" />
        </p>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
